﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using middleware.utiles;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace middleware.dominio
{
    [Table("Historicos")]
    public class Historico
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int HistoricoId { get; set; }
        public DateTime fecha { get; set; }

        [ForeignKey("mensaje")]
        public int MensajeID { get; set; }
        public Mensaje mensaje { get; set; }

        [ForeignKey("bandejaEntrada")]
        public int BandejaEntradaID { get; set; }
        public BandejaEntrada bandejaEntrada { get; set; }

        [ForeignKey("bandejaSalida")]
        public int BandejaSalidaID { get; set; }
        public BandejaSalida bandejaSalida { get; set; }

        [ForeignKey("regla")]
        public int ReglaId { get; set; }        
        public Regla regla { get; set; }

    }
}
